{% extends "bootstrap.html" %}
{% load bootstrap3 %}

{% block bootstrap3_content %}

    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#c1"
                        aria-expanded="false">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url 'home' %}">
                    <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                </a>
            </div>

            <div class="collapse navbar-collapse" id="c1">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expaned="false">设置
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href={% url 'task_results' %}>任务状态</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href={% url 'plugins' %}>插件扫描</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href={% url 'djcelery_crontab_schedule' %}>定期任务</a></li>
                            <li><a href={% url 'djcelery_interval_schedule' %}>周期任务</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href={% url 'djcelery_periodictask' %}>任务设置</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href={% url 'settings' %}>系统设置</a></li>
                        </ul>
                    </li>
                </ul>

                <ul class="nav navbar-nav navbar-right">
                    {% if request.user.is_authenticated %}
                        <li><a href="/logout/">欢迎:{{ request.user.username }} 点击注销</a>

                        </li>

                    {% else %}
                        <li>请<a href="/login/">登录</a></li>
                    {% endif %}
                </ul>
            </div>

        </div>
    </nav>
    <div class="span12">
        {% bootstrap_messages %}
        {% block content %} {{ content }}{% endblock %}
    </div>

{% endblock %}

{% block footer %}{{ footer }}{% endblock %}
